package com.fitness.service.impl;


import com.fitness.entity.NoticeEntity;
import com.fitness.mapper.NoticeMapper;
import com.fitness.service.NoticeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class NoticeServiceImpl implements NoticeService {

    @Resource // @Autowire
    private NoticeMapper noticeMapper;

    @Override
    public List<NoticeEntity> list(Long id) {
        return noticeMapper.list(id);
    }
}
